#include "BAT_Cal.h"
#include "usart2.h"

uint8_t getBatteryValue()
{
	uint8_t value;
	uint16_t local;
	local = ADCConvertedValue[2];
	if(local>2725) local = 2725;
	if(local<2085) local = 2085;
	local -= 2085;
	value = (local*10)>>6;
	return value;
}



